// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * RuleStock
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "rule_stock", autoResultMap = true)
@Schema(title = "备货规则")
public class RuleStock implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 采购计划
   */
  @TableField(value = "`buy_plan`")
  @Schema(title = "采购计划")
  private Integer buyPlan;

  /**
   * 质检
   */
  @TableField(value = "`quality_test`")
  @Schema(title = "质检")
  private Integer qualityTest;

  /**
   * 采购频率
   */
  @TableField(value = "`buy_frequency`")
  @Schema(title = "采购频率")
  private Integer buyFrequency;

  /**
   * 本地仓发货频率
   */
  @TableField(value = "`local_send_frequency`")
  @Schema(title = "本地仓发货频率")
  private Integer localSendFrequency;

  /**
   * 海外仓发货频率
   */
  @TableField(value = "`overseas_send_frequency`")
  @Schema(title = "海外仓发货频率")
  private Integer overseasSendFrequency;

  /**
   * 安全天数
   */
  @TableField(value = "`safe_days`")
  @Schema(title = "安全天数")
  private Integer safeDays;

  /**
   * 建议量扣除必断货量
   */
  @TableField(value = "`suggest_dock_out`")
  @Schema(title = "建议量扣除必断货量")
  private Boolean suggestDockOut;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 历史销售排除断货数据
   */
  @TableField(value = "`history_exclude_suggest`")
  @Schema(title = "历史销售排除断货数据")
  private Boolean historyExcludeSuggest;
}
